<?php
namespace Leads\Form;

use Zend\Captcha;
use Zend\Form\Element;
use Zend\Form\Form;
use Zend\InputFilter\Factory as InputFactory;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;

class CreateForm extends Form //implements InputFilterAwareInterface

{
	public function __construct($name = null)
	{
		parent::__construct('person');

		$this->setAttribute('method', 'post');

		$this->add(array(
				'name' => 'department',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type department...',
						'required' => 'required',
				),
		));

		$this->add(array(
				'name' => 'firstname',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type first name...',
						'required' => 'required',
				),
		));

		$this->add(array(
				'name' => 'jobtitle',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type jobtitle...',
				),
		));


		$this->add(array(
				'name' => 'lastname',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type last name...',
				),
		));


		$this->add(array(
				'name' => 'mobilephone',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type mobile phone...',
				),
		));

		$this->add(array(
				'name' => 'officephone',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type office phone...',
				),
		));

		$this->add(array(
				'name' => 'officefax',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type officefax...',
				),
		));

		$this->add(array(
				'name' => 'ownedsecurableitem_id',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type ownedsecurableitem_id...',
				),
		));



		$this->add(array(
				'name' => 'primaryaddress_address_id',
				// 'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type primaryaddress_address_id...',
				),
		));

		$this->add(array(
				'name' => 'primaryemail_email_id',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'Type primaryemail_email_id...',
				),
		));
		
		$this->add(array(
				'name' => 'title_customfield_id',
				//'type' => 'Zend\Form\Element\Text',
				'attributes' => array(
						'type'  => 'text',
						'placeholder' => 'title_customfield_id...',
				),
		));

		$this->add(array(
				'name' => 'submit',
				'attributes' => array(
						'type'  => 'submit',
						'value' => 'Go',
						'id' => 'submitbutton',
				),
		));


	}


	 
}
?>